package com.example.service.impl;

import com.example.entity.Dynamic;
import com.example.entity.DynamicImg;
import com.example.mapper.DynamicImgMapper;
import com.example.mapper.DynamicMapper;
import com.example.service.DynamicImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DynamicImgServiceImpl implements DynamicImgService {

    @Autowired
    DynamicImgMapper dynamicImgMapper;


    @Override
    public int insert(DynamicImg record) {
        dynamicImgMapper.insert(record);
        return record.getId();
    }

    @Override
    public DynamicImg selectByPrimaryKey(Integer id) {
        return dynamicImgMapper.selectByPrimaryKey(id);
    }
}
